package com.ttg.model.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import com.ttg.common.config.LocalDateTimeDeserializer;
import com.ttg.common.config.LocalDateTimeSerializer;


import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author zhangjie
 * @date 2021/7/10 18:50
 */
@Data
@NoArgsConstructor
@TableName(value = "tbl_sys_config")
public class SysConfig implements Serializable {
    /**
     * 自增主键
     */
    @TableId(value = "sys_id", type = IdType.AUTO)
    private Long sysId;
    /**
     * 配置名称
     */
    @TableField(value = "sys_name")
    private String sysName;
    /**
     * 配置值
     */
    @TableField(value = "sys_value")
    private String sysValue;
    /**
     * 备注
     */
    @TableField(value = "sys_remark")
    private String sysRemark;
    /**
     * 添加时间
     */
    @TableField(value = "sys_add_time")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime sysAddTime;
    /**
     * 修改时间
     */
    @TableField(value = "sys_edit_time")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime sysEditTime;
}
